<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<?php
    // header("Content-type: application/octet-stream");
    // header("Content-Disposition: attachment; filename=Daftar_Absensi_Kelas_".$nama_kelas.".xls");
    // header("Pragma: no-cache");
    // header("Expires: 0");
?>

<style type="text/css">
<!--
body,td,th {
	font-size: 13px;
	font-family:Arial,Helvetica;
	vertical-align:middle;
}
.judul{	
	font-size:30px;
	font-weight: bold;
	text-align:center;
} 

.subjudul{	
	font-size:20px;
	text-align:center;
	font-weight: bold;
} 

.headertabel {
	font-size:20px;
	text-align:center;
	background-color:#BFBFBF;
	border-width: 1px;
	border-style:solid;
}

.isi_tabel
{
    border-width: 1px 1px 1px 1px;
	border-style:solid;
	font-size:20px;
	height:50px;
	width:25px;
}

.lain
{
	font-weight: bold;
	font-size:20px;
	
}
-->
</style>

<?
//set nama bulan
$bulan_num = date('m');
if($bulan_num == 1){
	$bulan_awal = 'Jan';
	$bulan_akhir = 'Feb';
}
else if($bulan_num == 2){
	$bulan_awal = 'Feb';
	$bulan_akhir = 'Maret';
}
else if($bulan_num == 3){
	$bulan_awal = 'Maret';
	$bulan_akhir = 'April';
}
else if($bulan_num == 4){
	$bulan_awal = 'April';
	$bulan_akhir = 'Mei';
}
else if($bulan_num == 5){
	$bulan_awal = 'Mei';
	$bulan_akhir = 'Juni';
}
else if($bulan_num == 6){
	$bulan_awal = 'Juni';
	$bulan_akhir = 'Juli';
}
else if($bulan_num == 7){
	$bulan_awal = 'Juli';
	$bulan_akhir = 'Agst';
}
else if($bulan_num == 8){
	$bulan_awal = 'Agst';
	$bulan_akhir = 'Sept';
}
else if($bulan_num == 9){
	$bulan_awal = 'Sept';
	$bulan_akhir = 'Okt';
}
else if($bulan_num == 10){
	$bulan_awal = 'Okt';
	$bulan_akhir = 'Nov';
}
else if($bulan_num == 11){
	$bulan_awal = 'Nov';
	$bulan_akhir = 'Des';
}
else if($bulan_num == 12){
	$bulan_awal = 'Des';
	$bulan_akhir = 'Jan';
}


?>
<table border="0" cellspacing="0" width="1700">
  <tr>
    <td class="judul" colspan="16" scope="col">
		PRESENSI SANTRI
    </td>
  </tr>
  <tr>
    <td class="judul" colspan="16" scope="col">
		LEMBAGA KURSUS AL QUR'AN
    </td>
  </tr>
  <tr>
    <td class="subjudul" colspan="16" scope="col">
		YAYASAN MASJID AL FALAH - SURABAYA
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4" class="lain">USTAD/AH : <?=$nama_ustad?></td>
    <td align="left" class="lain">PERIODE : <?=$nama_periode?></td>
    <td colspan="5" align="left" class="lain">BULAN : <?=$bulan_awal?> - <?=$bulan_akhir?></td>
    <td>&nbsp;</td>
    <td colspan="3" class="lain">MATERI :</td>
    <td colspan="2" class="lain"><?=$nama_kelas?></td>
  </tr>
  <tr>
    <td colspan="4" class="lain">HARI / JAM : <?=$hari?> / <?=$jam?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td colspan="3" class="lain">TEMPAT :</td>
    <td colspan="2" class="lain"><?=$ruang_kelas ?></td>
  </tr>
  <tr>
    <td width="58">&nbsp;</td>
    <td width="100">&nbsp;</td>
    <td width="145">&nbsp;</td>
    <td width="198">&nbsp;</td>
    <td width="300">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td width="79">&nbsp;</td>
  </tr>
  <tr>
    <td rowspan="2" class="headertabel">No Urut</td>
    <td rowspan="2" class="headertabel">No. Induk</td>
    <td rowspan="2" class="headertabel">No Telepon / HP</td>
    <td rowspan="2" class="headertabel">Nama Santri</td>
    <td rowspan="2" class="headertabel">Alamat</td>
    <td colspan="10" class="headertabel">Tanggal</td>
    <td rowspan="2" class="headertabel">Ket.</td>
  </tr>
  <tr>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
  </tr>
  <?
	$no = 1;
  	foreach ($data_absensi->result() as $row){
	?>
		<tr>
				<td class="isi_tabel" align="center"><?=$no?></td>
				<td class="isi_tabel" align="center"><?=$row->munakosah?></td>
				<td class="isi_tabel" align="center"><?=$row->telpon_santri?></td>
				<td class="isi_tabel"><?=$row->nama_santri?></td>
				<td class="isi_tabel"><?=$row->asal_santri?></td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
				<td class="isi_tabel">&nbsp;</td>
			</tr>
		<?
			if($no%15==0){
			
		?>
		<tr>
    <td class="judul" colspan="16" scope="col">
		PRESENSI SANTRI
    </td>
  </tr>
  <tr>
    <td class="judul" colspan="16" scope="col">
		LEMBAGA KURSUS AL QUR'AN
    </td>
  </tr>
  <tr>
    <td class="subjudul" colspan="16" scope="col">
		YAYASAN MASJID AL FALAH - SURABAYA
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4" class="lain">USTAD/AH : <?=$nama_ustad?></td>
    <td align="left" class="lain">PERIODE : <?=$nama_periode?></td>
    <td colspan="5" align="left" class="lain">BULAN : <?=$bulan_awal?> - <?=$bulan_akhir?></td>
    <td>&nbsp;</td>
    <td colspan="3" class="lain">MATERI :</td>
    <td colspan="2" class="lain"><?=$nama_kelas?></td>
  </tr>
  <tr>
    <td colspan="4" class="lain">HARI / JAM : <?=$hari?> / <?=$jam?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td colspan="3" class="lain">TEMPAT :</td>
    <td colspan="2" class="lain"><?=$ruang_kelas ?></td>
  </tr>
  <tr>
    <td width="58">&nbsp;</td>
    <td width="100">&nbsp;</td>
    <td width="145">&nbsp;</td>
    <td width="198">&nbsp;</td>
    <td width="300">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td width="79">&nbsp;</td>
  </tr>
  <tr>
    <td rowspan="2" class="headertabel">No Urut</td>
    <td rowspan="2" class="headertabel">No. Induk</td>
    <td rowspan="2" class="headertabel">No Telepon / HP</td>
    <td rowspan="2" class="headertabel">Nama Santri</td>
    <td rowspan="2" class="headertabel">Alamat</td>
    <td colspan="10" class="headertabel">Tanggal</td>
    <td rowspan="2" class="headertabel">Ket.</td>
  </tr>
  <tr>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
    <td width="40" class="headertabel">&nbsp;</td>
  </tr>
		<?
		}
		$no++;
	}
  ?>
  
 
  <tr>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">Paraf Ustadz / dzah :</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
    <td class="isi_tabel">&nbsp;</td>
  </tr>
 
  <tr>
    <td colspan="12" class="lain">Keterangan : Bagi santri yang namanya belum tercantum harap menghubungi sekretariat dengan menunjukkan kwitansi pembayaran</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
